home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-20 | 1.4 KB | 33 lines | [TEXT/GEOL] |
- Item 5453702 18-Oct-89 08:40
-
- From: PASCOE1 Pascoe, Geoff
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: Prog won't run non-debug
-
- Eric,
-
- Just a thought about your problem-
-
- If you've looked at the suggestions of the others and still can't find the
- problem, there is a class of errors that may be the cause of your problem.
- (The other problems are much more likely, so check them first.)
-
- When one compiles with "debug on" the code that gets executed has lots of other
- things happening that does not happen in the non-debug version. That is, LOTS
- of other methods and procedures get called and return, leaving the stack in a
- very different state than would exist in a non-debug version of the program.
- If you forget to initialize a local variable or forget to return a value from a
- function (be sure to check that return value assignment actually gets executed,
- if there are different paths the execution might take) the debug version, by
- coincidence may be in such a state as to allow the program to continue, but
- when you switch to non-debug the values will likely not be the same. A more
- likely symptom of these types of errors is a trip into MacsBug or logic errors
- and strange behaviour, but I can imagine that some course of events might also
- lead to a program error alert.
-
- Good Luck,
- Geoff
-
-